﻿using MailKit.Net.Smtp;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using Zhp.Entity.Message.Email;

namespace Zhp.IService.Message.Email
{
    public interface ISmtpBuilder
    {
        Task<SmtpClient> BuildAsync(EmailAccount emailAccount);
        bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors);
    }
}
